package com.echo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 课程信息表
 * </p>
 *
 * @author echo
 * @since 2025-02-23
 */
@Data
@TableName("course")
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程ID
     */
    @TableId(value = "course_id", type = IdType.AUTO)
    private Integer courseId;

    //课程创建者
    private String creatorName;
    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 教学目标
     */
    private String teachingObjectives;

    /**
     * 教学内容
     */
    private String teachingContent;

    /**
     * 多媒体资源URL
     */
    private String multimediaResource;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
    public String getTeachingObjectives() {
        return teachingObjectives;
    }

    public void setTeachingObjectives(String teachingObjectives) {
        this.teachingObjectives = teachingObjectives;
    }
    public String getTeachingContent() {
        return teachingContent;
    }

    public void setTeachingContent(String teachingContent) {
        this.teachingContent = teachingContent;
    }
    public String getMultimediaResource() {
        return multimediaResource;
    }

    public void setMultimediaResource(String multimediaResource) {
        this.multimediaResource = multimediaResource;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Course{" +
            "courseId=" + courseId +
            ", courseName=" + courseName +
            ", teachingObjectives=" + teachingObjectives +
            ", teachingContent=" + teachingContent +
            ", multimediaResource=" + multimediaResource +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
